<#--
/****************************************************
 * Description: 用户组的简单列表页面，没有编辑功能
 * Copyright:   Copyright (c) 2013
 * Company:     beiwaionline
 * @author      bfsu
 * @version     1.0
 * @see
	HISTORY
    *  2013-08-08 bfsu Create File
**************************************************/
-->
<#include "/templates/ace/ace-inc.ftl">
<@list >
	<thead>
	    <tr>
	        <th><input type="checkbox" class="bscheckall"></th>
	        <th>名称</th>
	        <th>描述</th>
	        <th>是否系统组</th>
	        <th>是否有效</th>
	        <th>用户</th>
	        <th>操作</th>
	    </tr>
	</thead>
	<tbody>
	    <#list page.items?if_exists as item>
	    <tr>
	        <td>
				<input type="checkbox" class="bscheck" data="id:${item.id}">
	        </td>
	        <td>
	            ${item.title}
	        </td>
	        <td>
	            ${item.description}
	        </td>
	        <td>
				${getIntText(item.isSys)}
	        </td>
	        <td>
	            ${getIntText(item.isEnabled)}
	        </td>
	        <td>
	            <#list item.users?if_exists as user>
	            ${user.userName}<br>
	            </#list>
	        </td>
	        <td>
				<@button icon="pencil" type="primary" size="sm"
					onclick="bfsu.edit('${base}/components/security/group/input/${item.id}','修改用户组');">修改</@button>
				<@button icon="remove" type="primary" size="sm" 
					onclick="bfsu.del('${base}/components/security/group/delete/${item.id}','删除用户组？');">删除</@button>
				<@button icon="wrench" type="primary" size="sm" onclick="bfsu.html('${base}/components/security/groupRole/index/${item.id}')">角色设置</@button>
				<@button icon="wrench" type="primary" size="sm" onclick="bfsu.html('${base}/components/security/groupUser/index/${item.id}')">组用户管理</@button>
	        </td>
	    </tr>
	    </#list>
	</tbody>
</@list>